<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"/>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="format-detection" content="email=no"/>
    <meta charset="UTF-8">
    <script type="text/javascript" th:src="@{${session.baseUrl}+'js/common.js'}"></script>
    <script th:src="@{${session.baseUrl}+'js/jquery.js'}"></script>
    <link th:href="@{${session.baseUrl}+'style/reset.css'}" rel="stylesheet" type="text/css">
    <link th:href="@{${session.baseUrl}+'style/base.css'}" rel="stylesheet" type="text/css">
    <link th:href="@{${session.baseUrl}+'style/header.css'}" rel="stylesheet" type="text/css">
    <link rel="stylesheet" th:href="@{${session.baseUrl}+'style/myProject.css'}"/>
    <title>合作伙伴</title>
</head>
<body>
<header><span onclick="javascript:history.go(-1)"></span>合作伙伴</header>
<!--<nav>
    <ul class="df jcsb bgwh">
        <li class="tc fx1 active">参与</li>
        &lt;!&ndash;<li class="tc fx1">发起中</li>&ndash;&gt;
       &lt;!&ndash; <li class="tc fx1">转让</li>&ndash;&gt;
    </ul>
</nav>-->


<ul id="content0" class="content">
     <span>
        <li th:each="me,iterStat:${informationMechanismList}">
            <a th:href="${me.officialWebsite}">
            <div class="container">
                <i><img th:src="@{${me.logoUrl}}" alt="" style="width: 100%;height: 3.8rem;"/></i>

                <p class="intro" align="center" th:text="${me.name}"></p>
            </div>

            </a>
        </li>
     </span>


</ul>

<!--<ul id="content2" class="content" style="display: none;">
    <li>
        <div class="container">
            <img th:src="@{${session.baseUrl}+'images/myProject/img1.png'}" alt="" class="banner"/>
            <p class="intro">&nbsp;一起来开一家设计师主题咖啡馆@安的咖啡</p>
        </div>
        <div class="message2">
            <div>
                <div class="parent2"><div class="child2"></div></div>
                <div class="target2">40%(目标¥10万)<span class="point2"></span></div>
            </div>
            <div>
                <p class="people2">115人参与</p>
                <p class="day2">剩余15天结束</p>
            </div>
        </div>
    </li>
</ul>-->
<!--<script type="text/javascript" th:inline="javascript">
    var basePath = /*[[${#httpServletRequest.getScheme() + "://" + #httpServletRequest.getServerName() + ":" + #httpServletRequest.getServerPort() + #httpServletRequest.getContextPath()}]]*/;


  /*  $(function(){
        $("nav ul li").each(function(index,val){
            $(val).click(function(){
                $(this).addClass("active").siblings().removeClass("active");
                $("#content"+index).show().siblings(".content").hide();
            });
        });
        for(var i=0;i<$(".child2").length;i++){
            $(".child2").eq(i).css("width",parseInt($(".target2").eq(i).text())+'%');
        }
    });*/

    var num = 1;
    $(function(){
        $(window).scroll(

            function(){

                if ((document.documentElement.scrollHeight) == (document.documentElement.scrollTop | document.body.scrollTop) + document.documentElement.clientHeight){
                    num=num+1;

                    $.ajax({
                        type: "POST",
                        data:{
                            current:num,
                            memberId:/*[[${session.memberId}]]*/,
                        },
                        url: basePath+'/wap/memberProject/pageList',
                        cache:false,
                        /*async:true,    //true：异步，false：同步。*/
                        success: function(data){

                           str='';
                            $.each(data,function(index,value) {
                                str += '<li>';
                                str += '<a href="/wap/detail.html?projectId='+value.projectId+'">';
                                str += '<div class="container">';
                                if(value.type==0){
                                    str += '<img src="http://localhost:8050/crowd-wap/images/projectDetail/mingxing.png" alt="" class="banner"/>';
                                }else if(value.type==1){
                                    str += '<img src="http://localhost:8050/crowd-wap/images/projectDetail/youxiu.png" alt="" class="banner"/>';
                                }else{
                                    str += '<img src="http://localhost:8050/crowd-wap/images/projectDetail/xingjiabi.png" alt="" class="banner"/>';
                                }
                                str += '<p class="intro" >&nbsp;'+value.projectName+'</p>';
                                str += '</div>';
                                str += '<div class="message">';
                                str += '<div>';
                                str += ' <div class="f22 g9">投资金额：<span class="f26 money" >'+value.money+'</span></div>';
                                str += '</div>';
                                str += '<div>';
                                str += '<div class="f22 g9">收益金额：<span class="f26 money" th:text="${mp.earningsMoney}">'+value.earningsMoney+'</span></div>';
                                str += '</div>';
                                str += '<div>';
                                str += '<p class="day">剩余298天结束</p>';
                                str += '</div>';
                                str += '</div>';
                                str += '</a>';
                                str += '</li>';
                            });
                            $("#content0").append(str); //动态加载插入HTML
                        },
                        error: function(){
                            alert("ajax请求失败");
                        }
                    })


                }
            });
    });




</script>-->
</body>
</html>